<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="basePath" value="<%=basePath%>" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Dong index.jsp</title>
<style type="text/css">
html,body {
	margin: 10px;
}
</style>
</head>

<body>
	Main:
	<input type="button" value="ADD" id="ADD" />
</body>
<script type="text/javascript" src="${basePath }js/dong/base/dong.js"></script>
<script type="text/javascript">
	(function() {
		Dong.imported([ 'util.Jquery' ], function($) {
			$("#ADD").bind("click", function() {
				$.ajax({
					type : "post",
					url : "${basePath}business.action?method=add",
					data : {
						key : 'uuid'
					},
					dataType : "json",
					async : false,
					success : function(data) {
						alert(data.message);
					}
				});
			});
		});
	})();
</script>
</html>
